﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true"
    CodeFile="Projects.aspx.cs" Inherits="Projects" Theme="Main" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphSemiCASE" runat="Server">
    <table class="AnaTablo" style="width: 100%">
        <tr>
            <th class="ThBaslikRenk1">
                PROJECT LIST
            </th>
        </tr>
        <tr>
            <td class="TdRenkSagaYasla">
                <asp:HyperLink ID="HyperlinkNewProject" runat="server" ImageUrl="~/App_Themes/Main/Images/Buttons/yenikayitbtn.jpg"></asp:HyperLink>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width: 100%">
                    <tr>
                        <td>
                            <asp:Label ID="LabelRowCount" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:GridView ID="gvProjects" runat="server" AutoGenerateColumns="False" Width="100%"
                                DataKeyNames="ProjectID,Name" EmptyDataText="There is no defined project." OnRowDataBound="gvProjects_RowDataBound"
                                OnRowCommand="gvProjects_RowCommand" OnPageIndexChanging="gvProjects_PageIndexChanging"
                                AllowPaging="true" PageSize="50">
                                <Columns>
                                    <asp:BoundField DataField="SiraNo" HeaderText="NO" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" />
                                    <asp:BoundField DataField="Name" HeaderText="PROJECT NAME" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="StartDate" HeaderText="START DATE" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" />
                                    <asp:BoundField DataField="EndDate" HeaderText="END DATE" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" />
                                    <asp:BoundField DataField="StatusName" HeaderText="STATUS" ItemStyle-CssClass="columnborder"
                                        ItemStyle-Width="10%" />
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            UPDATE
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:HyperLink ID="HyperLinkUpdate" runat="server" ImageUrl="~/App_Themes/Main/Images/Ikonlar/guncelle.gif"
                                                ToolTip="Update"></asp:HyperLink>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" CssClass="columnborder" Width="3%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            DELETE
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ButtonDelete" runat="server" ToolTip="Delete" ImageUrl="~/App_Themes/Main/Images/Ikonlar/kapat.gif"
                                                CommandArgument='<%# Eval("ProjectID") %>' CommandName="DeleteProject" OnClientClick="javascript:return confirm('Project will be deleted. Are you sure?')" />
                                        </ItemTemplate>
                                        <ItemStyle Width="3%" HorizontalAlign="Center" CssClass="columnborder" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            USE CASES
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ButtonUseCase" runat="server" ToolTip="Use Case List" ImageUrl="~/App_Themes/Main/Images/Ikonlar/listele.gif"
                                                CommandArgument='<%# Eval("ProjectID") %>' CommandName="UseCaseList" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" CssClass="columnborder" Width="7%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            TEST CASES
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:HyperLink ID="HyperLinkTestCase" runat="server" ImageUrl="~/App_Themes/Main/Images/Ikonlar/dagitim.gif"
                                                ToolTip="List Test Cases"></asp:HyperLink>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" CssClass="columnborder" Width="7%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            WORK ITEMS
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:HyperLink ID="HyperLinkWorkItems" runat="server" ImageUrl="~/App_Themes/Main/Images/Ikonlar/listele.gif"
                                                ToolTip="List Work Items"></asp:HyperLink>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" CssClass="columnborder" Width="9%" />
                                    </asp:TemplateField>
                                </Columns>
                                <EmptyDataRowStyle Font-Bold="True" ForeColor="Red" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
